<template>
  <div>
    <h2>嵌套路由</h2>
    <router-link to="/">主页</router-link>&nbsp;
    <router-link to="/news">新闻</router-link>&nbsp;
    <router-link to="/sports">体育</router-link>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
};
</script>

<style scoped>
a {
  text-decoration: none;
}
</style>
